import  type { ApiDelete } from '@/api/api.ts'

export type LeftMenuVo = {
  id: string
  parentId: string
  name: string
  path: string
  children: LeftMenuVo[]
  meta: LeftMetaVo
}

export type LeftMetaVo = {
  title: string
  icon: string
  showLink: true
}

export interface MenuAddDTO {
  path?: string
  title?: string
  name?: string
  icon?: string
  //1-业务,2-菜单,3-按钮
  type: number
  code?: string
  parentId: string
  sort: number
}

export interface MenuModDTO extends MenuAddDTO {
  id: string
}

export interface Menu extends ApiDelete, MenuAddDTO {
  children: Menu[]
}
